import request from '@/utils/http.js'

/* 
  GET params
  POST data
*/

export function config(params) {
  return request({
    url: '/api/config',
    method: 'GET',
    params
  })
}

// 用户信息
export function list(params) {
  return request({
    url: '/api/config/list',
    method: 'GET',
    params
  })
}

// 首页推荐
export function getIndex(params) {
  return request({
    url: '/api/container/getIndex',
    method: 'GET',
    params
  })
}

// 微博详情
export function extend(params) {
  return request({
    url: '/statuses/extend',
    method: 'GET',
    params
  })
}

// 详情 banner 图
export function banner(params) {
  return request({
    url: '/statuses/banner',
    method: 'GET',
    params
  })
}

// 评论
export function hotflow(params) {
  return request({
    url: '/comments/hotflow',
    method: 'GET',
    params
  })
}

// 详情
export function detail(id) {
  return request({
    url: `/detail/${id}`,
    method: 'GET'
  })
}

// 点赞信息
export function show(params) {
  return request({
    url: '/api/attitudes/show',
    method: 'GET',
    params
  })
}

// tab
export function trendtop(params) {
  return request({
    url: 'api/feed/trendtop',
    method: 'GET',
    params
  })
}